package com.zjj.learn.javaplus.pkg06.demo603;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class FisRead {

    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("ab1.txt");
        //获取数据，返回一个字节
//        int read = fis.read();
//        System.out.println("read = " + read);


//        int i;
//        while ((i = fis.read()) != -1){
//            System.out.println( i);
//        }
//        //关闭资源
//        fis.close();

    }
}
